package com.gla.giliair.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlightExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public FlightExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFlightIdIsNull() {
            addCriterion("flight_id is null");
            return (Criteria) this;
        }

        public Criteria andFlightIdIsNotNull() {
            addCriterion("flight_id is not null");
            return (Criteria) this;
        }

        public Criteria andFlightIdEqualTo(Long value) {
            addCriterion("flight_id =", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotEqualTo(Long value) {
            addCriterion("flight_id <>", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdGreaterThan(Long value) {
            addCriterion("flight_id >", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdGreaterThanOrEqualTo(Long value) {
            addCriterion("flight_id >=", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdLessThan(Long value) {
            addCriterion("flight_id <", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdLessThanOrEqualTo(Long value) {
            addCriterion("flight_id <=", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdIn(List<Long> values) {
            addCriterion("flight_id in", values, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotIn(List<Long> values) {
            addCriterion("flight_id not in", values, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdBetween(Long value1, Long value2) {
            addCriterion("flight_id between", value1, value2, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotBetween(Long value1, Long value2) {
            addCriterion("flight_id not between", value1, value2, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIsNull() {
            addCriterion("flight_number is null");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIsNotNull() {
            addCriterion("flight_number is not null");
            return (Criteria) this;
        }

        public Criteria andFlightNumberEqualTo(String value) {
            addCriterion("flight_number =", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotEqualTo(String value) {
            addCriterion("flight_number <>", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberGreaterThan(String value) {
            addCriterion("flight_number >", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberGreaterThanOrEqualTo(String value) {
            addCriterion("flight_number >=", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLessThan(String value) {
            addCriterion("flight_number <", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLessThanOrEqualTo(String value) {
            addCriterion("flight_number <=", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLike(String value) {
            addCriterion("flight_number like", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotLike(String value) {
            addCriterion("flight_number not like", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIn(List<String> values) {
            addCriterion("flight_number in", values, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotIn(List<String> values) {
            addCriterion("flight_number not in", values, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberBetween(String value1, String value2) {
            addCriterion("flight_number between", value1, value2, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotBetween(String value1, String value2) {
            addCriterion("flight_number not between", value1, value2, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andLeavePointIsNull() {
            addCriterion("leave_point is null");
            return (Criteria) this;
        }

        public Criteria andLeavePointIsNotNull() {
            addCriterion("leave_point is not null");
            return (Criteria) this;
        }

        public Criteria andLeavePointEqualTo(String value) {
            addCriterion("leave_point =", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointNotEqualTo(String value) {
            addCriterion("leave_point <>", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointGreaterThan(String value) {
            addCriterion("leave_point >", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointGreaterThanOrEqualTo(String value) {
            addCriterion("leave_point >=", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointLessThan(String value) {
            addCriterion("leave_point <", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointLessThanOrEqualTo(String value) {
            addCriterion("leave_point <=", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointLike(String value) {
            addCriterion("leave_point like", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointNotLike(String value) {
            addCriterion("leave_point not like", value, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointIn(List<String> values) {
            addCriterion("leave_point in", values, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointNotIn(List<String> values) {
            addCriterion("leave_point not in", values, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointBetween(String value1, String value2) {
            addCriterion("leave_point between", value1, value2, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andLeavePointNotBetween(String value1, String value2) {
            addCriterion("leave_point not between", value1, value2, "leavePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointIsNull() {
            addCriterion("arrive_point is null");
            return (Criteria) this;
        }

        public Criteria andArrivePointIsNotNull() {
            addCriterion("arrive_point is not null");
            return (Criteria) this;
        }

        public Criteria andArrivePointEqualTo(String value) {
            addCriterion("arrive_point =", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointNotEqualTo(String value) {
            addCriterion("arrive_point <>", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointGreaterThan(String value) {
            addCriterion("arrive_point >", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointGreaterThanOrEqualTo(String value) {
            addCriterion("arrive_point >=", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointLessThan(String value) {
            addCriterion("arrive_point <", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointLessThanOrEqualTo(String value) {
            addCriterion("arrive_point <=", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointLike(String value) {
            addCriterion("arrive_point like", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointNotLike(String value) {
            addCriterion("arrive_point not like", value, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointIn(List<String> values) {
            addCriterion("arrive_point in", values, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointNotIn(List<String> values) {
            addCriterion("arrive_point not in", values, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointBetween(String value1, String value2) {
            addCriterion("arrive_point between", value1, value2, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andArrivePointNotBetween(String value1, String value2) {
            addCriterion("arrive_point not between", value1, value2, "arrivePoint");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportIsNull() {
            addCriterion("leave_airport is null");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportIsNotNull() {
            addCriterion("leave_airport is not null");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportEqualTo(String value) {
            addCriterion("leave_airport =", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportNotEqualTo(String value) {
            addCriterion("leave_airport <>", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportGreaterThan(String value) {
            addCriterion("leave_airport >", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportGreaterThanOrEqualTo(String value) {
            addCriterion("leave_airport >=", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportLessThan(String value) {
            addCriterion("leave_airport <", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportLessThanOrEqualTo(String value) {
            addCriterion("leave_airport <=", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportLike(String value) {
            addCriterion("leave_airport like", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportNotLike(String value) {
            addCriterion("leave_airport not like", value, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportIn(List<String> values) {
            addCriterion("leave_airport in", values, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportNotIn(List<String> values) {
            addCriterion("leave_airport not in", values, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportBetween(String value1, String value2) {
            addCriterion("leave_airport between", value1, value2, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveAirportNotBetween(String value1, String value2) {
            addCriterion("leave_airport not between", value1, value2, "leaveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportIsNull() {
            addCriterion("arrive_airport is null");
            return (Criteria) this;
        }

        public Criteria andArriveAirportIsNotNull() {
            addCriterion("arrive_airport is not null");
            return (Criteria) this;
        }

        public Criteria andArriveAirportEqualTo(String value) {
            addCriterion("arrive_airport =", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportNotEqualTo(String value) {
            addCriterion("arrive_airport <>", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportGreaterThan(String value) {
            addCriterion("arrive_airport >", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportGreaterThanOrEqualTo(String value) {
            addCriterion("arrive_airport >=", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportLessThan(String value) {
            addCriterion("arrive_airport <", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportLessThanOrEqualTo(String value) {
            addCriterion("arrive_airport <=", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportLike(String value) {
            addCriterion("arrive_airport like", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportNotLike(String value) {
            addCriterion("arrive_airport not like", value, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportIn(List<String> values) {
            addCriterion("arrive_airport in", values, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportNotIn(List<String> values) {
            addCriterion("arrive_airport not in", values, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportBetween(String value1, String value2) {
            addCriterion("arrive_airport between", value1, value2, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andArriveAirportNotBetween(String value1, String value2) {
            addCriterion("arrive_airport not between", value1, value2, "arriveAirport");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeIsNull() {
            addCriterion("leave_time is null");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeIsNotNull() {
            addCriterion("leave_time is not null");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeEqualTo(Date value) {
            addCriterion("leave_time =", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeNotEqualTo(Date value) {
            addCriterion("leave_time <>", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeGreaterThan(Date value) {
            addCriterion("leave_time >", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("leave_time >=", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeLessThan(Date value) {
            addCriterion("leave_time <", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeLessThanOrEqualTo(Date value) {
            addCriterion("leave_time <=", value, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeIn(List<Date> values) {
            addCriterion("leave_time in", values, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeNotIn(List<Date> values) {
            addCriterion("leave_time not in", values, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeBetween(Date value1, Date value2) {
            addCriterion("leave_time between", value1, value2, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andLeaveTimeNotBetween(Date value1, Date value2) {
            addCriterion("leave_time not between", value1, value2, "leaveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeIsNull() {
            addCriterion("arrive_time is null");
            return (Criteria) this;
        }

        public Criteria andArriveTimeIsNotNull() {
            addCriterion("arrive_time is not null");
            return (Criteria) this;
        }

        public Criteria andArriveTimeEqualTo(Date value) {
            addCriterion("arrive_time =", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeNotEqualTo(Date value) {
            addCriterion("arrive_time <>", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeGreaterThan(Date value) {
            addCriterion("arrive_time >", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("arrive_time >=", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeLessThan(Date value) {
            addCriterion("arrive_time <", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeLessThanOrEqualTo(Date value) {
            addCriterion("arrive_time <=", value, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeIn(List<Date> values) {
            addCriterion("arrive_time in", values, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeNotIn(List<Date> values) {
            addCriterion("arrive_time not in", values, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeBetween(Date value1, Date value2) {
            addCriterion("arrive_time between", value1, value2, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andArriveTimeNotBetween(Date value1, Date value2) {
            addCriterion("arrive_time not between", value1, value2, "arriveTime");
            return (Criteria) this;
        }

        public Criteria andFlightDurationIsNull() {
            addCriterion("flight_duration is null");
            return (Criteria) this;
        }

        public Criteria andFlightDurationIsNotNull() {
            addCriterion("flight_duration is not null");
            return (Criteria) this;
        }

        public Criteria andFlightDurationEqualTo(String value) {
            addCriterion("flight_duration =", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationNotEqualTo(String value) {
            addCriterion("flight_duration <>", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationGreaterThan(String value) {
            addCriterion("flight_duration >", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationGreaterThanOrEqualTo(String value) {
            addCriterion("flight_duration >=", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationLessThan(String value) {
            addCriterion("flight_duration <", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationLessThanOrEqualTo(String value) {
            addCriterion("flight_duration <=", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationLike(String value) {
            addCriterion("flight_duration like", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationNotLike(String value) {
            addCriterion("flight_duration not like", value, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationIn(List<String> values) {
            addCriterion("flight_duration in", values, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationNotIn(List<String> values) {
            addCriterion("flight_duration not in", values, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationBetween(String value1, String value2) {
            addCriterion("flight_duration between", value1, value2, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andFlightDurationNotBetween(String value1, String value2) {
            addCriterion("flight_duration not between", value1, value2, "flightDuration");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("company_id is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("company_id is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(Long value) {
            addCriterion("company_id =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(Long value) {
            addCriterion("company_id <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(Long value) {
            addCriterion("company_id >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("company_id >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(Long value) {
            addCriterion("company_id <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(Long value) {
            addCriterion("company_id <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<Long> values) {
            addCriterion("company_id in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<Long> values) {
            addCriterion("company_id not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(Long value1, Long value2) {
            addCriterion("company_id between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(Long value1, Long value2) {
            addCriterion("company_id not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeIsNull() {
            addCriterion("company_code is null");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeIsNotNull() {
            addCriterion("company_code is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeEqualTo(String value) {
            addCriterion("company_code =", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeNotEqualTo(String value) {
            addCriterion("company_code <>", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeGreaterThan(String value) {
            addCriterion("company_code >", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("company_code >=", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeLessThan(String value) {
            addCriterion("company_code <", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeLessThanOrEqualTo(String value) {
            addCriterion("company_code <=", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeLike(String value) {
            addCriterion("company_code like", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeNotLike(String value) {
            addCriterion("company_code not like", value, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeIn(List<String> values) {
            addCriterion("company_code in", values, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeNotIn(List<String> values) {
            addCriterion("company_code not in", values, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeBetween(String value1, String value2) {
            addCriterion("company_code between", value1, value2, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyCodeNotBetween(String value1, String value2) {
            addCriterion("company_code not between", value1, value2, "companyCode");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNull() {
            addCriterion("company_name is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNotNull() {
            addCriterion("company_name is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEqualTo(String value) {
            addCriterion("company_name =", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotEqualTo(String value) {
            addCriterion("company_name <>", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThan(String value) {
            addCriterion("company_name >", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThanOrEqualTo(String value) {
            addCriterion("company_name >=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThan(String value) {
            addCriterion("company_name <", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThanOrEqualTo(String value) {
            addCriterion("company_name <=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLike(String value) {
            addCriterion("company_name like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotLike(String value) {
            addCriterion("company_name not like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIn(List<String> values) {
            addCriterion("company_name in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotIn(List<String> values) {
            addCriterion("company_name not in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameBetween(String value1, String value2) {
            addCriterion("company_name between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotBetween(String value1, String value2) {
            addCriterion("company_name not between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdIsNull() {
            addCriterion("planemodel_id is null");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdIsNotNull() {
            addCriterion("planemodel_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdEqualTo(Long value) {
            addCriterion("planemodel_id =", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdNotEqualTo(Long value) {
            addCriterion("planemodel_id <>", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdGreaterThan(Long value) {
            addCriterion("planemodel_id >", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("planemodel_id >=", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdLessThan(Long value) {
            addCriterion("planemodel_id <", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdLessThanOrEqualTo(Long value) {
            addCriterion("planemodel_id <=", value, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdIn(List<Long> values) {
            addCriterion("planemodel_id in", values, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdNotIn(List<Long> values) {
            addCriterion("planemodel_id not in", values, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdBetween(Long value1, Long value2) {
            addCriterion("planemodel_id between", value1, value2, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelIdNotBetween(Long value1, Long value2) {
            addCriterion("planemodel_id not between", value1, value2, "planemodelId");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameIsNull() {
            addCriterion("planemodel_name is null");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameIsNotNull() {
            addCriterion("planemodel_name is not null");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameEqualTo(String value) {
            addCriterion("planemodel_name =", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameNotEqualTo(String value) {
            addCriterion("planemodel_name <>", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameGreaterThan(String value) {
            addCriterion("planemodel_name >", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameGreaterThanOrEqualTo(String value) {
            addCriterion("planemodel_name >=", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameLessThan(String value) {
            addCriterion("planemodel_name <", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameLessThanOrEqualTo(String value) {
            addCriterion("planemodel_name <=", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameLike(String value) {
            addCriterion("planemodel_name like", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameNotLike(String value) {
            addCriterion("planemodel_name not like", value, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameIn(List<String> values) {
            addCriterion("planemodel_name in", values, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameNotIn(List<String> values) {
            addCriterion("planemodel_name not in", values, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameBetween(String value1, String value2) {
            addCriterion("planemodel_name between", value1, value2, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andPlanemodelNameNotBetween(String value1, String value2) {
            addCriterion("planemodel_name not between", value1, value2, "planemodelName");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdIsNull() {
            addCriterion("cabin_info_id is null");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdIsNotNull() {
            addCriterion("cabin_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdEqualTo(Long value) {
            addCriterion("cabin_info_id =", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotEqualTo(Long value) {
            addCriterion("cabin_info_id <>", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdGreaterThan(Long value) {
            addCriterion("cabin_info_id >", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("cabin_info_id >=", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdLessThan(Long value) {
            addCriterion("cabin_info_id <", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdLessThanOrEqualTo(Long value) {
            addCriterion("cabin_info_id <=", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdIn(List<Long> values) {
            addCriterion("cabin_info_id in", values, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotIn(List<Long> values) {
            addCriterion("cabin_info_id not in", values, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdBetween(Long value1, Long value2) {
            addCriterion("cabin_info_id between", value1, value2, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotBetween(Long value1, Long value2) {
            addCriterion("cabin_info_id not between", value1, value2, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceIsNull() {
            addCriterion("least_original_price is null");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceIsNotNull() {
            addCriterion("least_original_price is not null");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceEqualTo(BigDecimal value) {
            addCriterion("least_original_price =", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceNotEqualTo(BigDecimal value) {
            addCriterion("least_original_price <>", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceGreaterThan(BigDecimal value) {
            addCriterion("least_original_price >", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("least_original_price >=", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceLessThan(BigDecimal value) {
            addCriterion("least_original_price <", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("least_original_price <=", value, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceIn(List<BigDecimal> values) {
            addCriterion("least_original_price in", values, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceNotIn(List<BigDecimal> values) {
            addCriterion("least_original_price not in", values, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("least_original_price between", value1, value2, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("least_original_price not between", value1, value2, "leastOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceIsNull() {
            addCriterion("least_price is null");
            return (Criteria) this;
        }

        public Criteria andLeastPriceIsNotNull() {
            addCriterion("least_price is not null");
            return (Criteria) this;
        }

        public Criteria andLeastPriceEqualTo(BigDecimal value) {
            addCriterion("least_price =", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceNotEqualTo(BigDecimal value) {
            addCriterion("least_price <>", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceGreaterThan(BigDecimal value) {
            addCriterion("least_price >", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("least_price >=", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceLessThan(BigDecimal value) {
            addCriterion("least_price <", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("least_price <=", value, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceIn(List<BigDecimal> values) {
            addCriterion("least_price in", values, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceNotIn(List<BigDecimal> values) {
            addCriterion("least_price not in", values, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("least_price between", value1, value2, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andLeastPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("least_price not between", value1, value2, "leastPrice");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNull() {
            addCriterion("is_deleted is null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNotNull() {
            addCriterion("is_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedEqualTo(Integer value) {
            addCriterion("is_deleted =", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotEqualTo(Integer value) {
            addCriterion("is_deleted <>", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThan(Integer value) {
            addCriterion("is_deleted >", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_deleted >=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThan(Integer value) {
            addCriterion("is_deleted <", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("is_deleted <=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIn(List<Integer> values) {
            addCriterion("is_deleted in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotIn(List<Integer> values) {
            addCriterion("is_deleted not in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted not between", value1, value2, "isDeleted");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}